<div id="result">
<?php echo $this->Session->flash(); ?>
<?php echo $this->Form->create('Shipping');?>
	<div class="div_header1"><?php __('Add Shipping Method'); ?></div>
	<?php
		echo $this->Form->input('category_id',array('type'=>'hidden','label'=>false,'value'=>$this->data['cat_id']));
		echo $this->Form->input('shipping_method',array('size'=>'30','class'=>'required','title'=>'Shipping method cannot be left empty'));
		
		echo $this->Form->input('shipping_destination',array('options' => array('National'=>'National','International'=>'International'),'class'=>'required','title'=>'Shipping destination cannot be left empty'));
		
		echo $this->Form->input('shipping_cost',array('class'=>'required'));
		
	?>
	<br />
<input type="submit" value="Save" id="Save" name="Save" style="background: none repeat scroll 0% 0% rgb(115, 174, 11); color: rgb(255, 255, 255); font-size: 14px;">
</form>
</div>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js","jquery.pagination.js","jquery.tablesorter.min.js","jquery.tablednd.js")); ?>	 
<script type="text/javascript">  
 jQuery(document).ready(function(){
 var v = jQuery("#ShippingAddForm").validate({
			submitHandler: function(form) {				
				jQuery(form).ajaxSubmit({				
					target: "#result"
				});
			}
		});
	});
		
</script>